

package LibraryPackage;

import java.util.HashMap;
import java.util.Hashtable;

public class library
{
	HashMap m_Map1=new HashMap();
	
	public library()
	{
		
		
	}

	public void addbook(String uniquekey, Book in_book)
	{
		m_Map1.put(uniquekey, in_book);
		
		
	}

	public Book getbook(String uniquekey)
	{
		return (Book) m_Map1.get(uniquekey);
		
	}
	public int Size(int mapsize)
	{
		
		return m_Map1.size();
		}
	
	public boolean containsBook(Book uniquekey)
	{
		return (boolean) m_Map1.containsKey(uniquekey);
		
	}
}
